package com.example.spring.controller;

import com.example.spring.service.ProductService;
import com.example.spring.service.UserService;

/**
 * 用户控制器
 */
public class UserController {
    private final UserService userService;

    public UserController(UserService userService) {
        this.userService = userService;
    }

    public void register(String username) {
        userService.registerUser(username);
    }

    public void update(String username) {
        userService.updateUserInfo(username);
    }
}

